<?php session_start(); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<?php include("db.php"); 	// Connect to the database server
dbConnect('kar_web1');   	// Use function in db.php to connect
include_once("http://02d2e0a.netsolhost.com/includes/timeout.php");?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Kalamazoo Animal Rescue</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<?php include("http://02d2e0a.netsolhost.com/includes/head.inc");  ?>
<script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
</head>
<div id="bodywidth">
<?php include("http://02d2e0a.netsolhost.com/includes/header.inc");  ?>
<p align="center">&nbsp;</p>
<p align="center">&nbsp;</p>
<p align="center">&nbsp;</p>
<?php include("http://02d2e0a.netsolhost.com/includes/leftmenu.php");
if (!isset($_SESSION['name']))
{ ?>
<div id="centercontent" style="width: 475px; height: auto">
<form method="GET" action="confirmlogin.php">
<table height="300px" width="100%" border=0 >
	<td align= center valign="top">
		<table height="300px" width="100%" border=0>
			<td align="center">
				<table width="100%" border=0>
				<td align="center">
				<font size=6>KAR Volunteer and Admin Login</font>
				</td>
			</td>
		</table>

		<br>

		<table width="400px" cellpadding="5%" border="0">
		<tr>
			<td align=right><font size=3><b>User Name:</b></font></td /align>
			<td><input type="text" name="user" size="20"></td>
		</tr>
		<tr>
			<td align=right><font size=3><b>Password:</b></td /align>
			<td><input type="password" name="password" size="20"></td>
		</tr>
		</table>

		<table width="100%" border="0">
		<tr>
			<td align=center><input type="submit" value="Login">
			
		</tr>
		</table>
	</td>
</table>
</div>
<? include("http://02d2e0a.netsolhost.com/includes/footer.inc");  ?>
</div>
</body>
</html>
<?php 
}
else
{ ?>
<div id="centercontent" style="width: 475px; height: auto">
    <HR class="thickline"/>
	<h2 class="style9">Admin Tools</h2></hr>
	<hr class="thickline"/>
	</hr>
<?php
// For SESSION Debugging purposes
Print_r($_SESSION);


echo("<ul>");
echo("<li><a href=\"http://02d2e0a.netsolhost.com/admin/catintake.php\">View Cat Intake</a></li><p>");
echo("<li><a href=\"http://02d2e0a.netsolhost.com/admin/dogintake.php\">View Dog Intake</a></li><p>");
echo("<li><a href=\"http://02d2e0a.netsolhost.com/admin/user.php\">User Management</a></li><p>");
echo("<li><a href=\"http://02d2e0a.netsolhost.com/admin/massemail.php\">Mass E-Mailer</a></li><p>");
echo("<li><a href=\"http://02d2e0a.netsolhost.com/admin/updatecat.php\">Update Cats</a></li><p>");
echo("<li><a href=\"http://02d2e0a.netsolhost.com/admin/updatedog.php\">Update Dogs</a></li><p>"); 
?>
</div>
<? include("http://02d2e0a.netsolhost.com/includes/footer.inc");  ?>
</div>
</div>
</body>
</html>
<?php 
} ?>